package core

import "context"

type ReceiverGroup struct {
	Ctx       context.Context
	Name      string
	Receivers []Receiver
}

func (g *ReceiverGroup) StartReceiverGroup() error {
	for _, receiver := range g.Receivers {
		err := receiver.StartReceiver()
		if err != nil {
			return err
		}
	}

	return nil
}
